package com.uls.czj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.czj.mapper.CzjCommercialpropertyMapper;
import com.uls.czj.domain.CzjCommercialproperty;
import com.uls.czj.service.ICzjCommercialpropertyService;

/**
 * 经营用房管理Service业务层处理
 * 
 * @author czj
 * @date 2024-11-10
 */
@Service
public class CzjCommercialpropertyServiceImpl implements ICzjCommercialpropertyService 
{
    @Autowired
    private CzjCommercialpropertyMapper czjCommercialpropertyMapper;

    /**
     * 查询经营用房管理
     * 
     * @param commercialid 经营用房管理主键
     * @return 经营用房管理
     */
    @Override
    public CzjCommercialproperty selectCzjCommercialpropertyByCommercialid(Long commercialid)
    {
        return czjCommercialpropertyMapper.selectCzjCommercialpropertyByCommercialid(commercialid);
    }

    /**
     * 查询经营用房管理列表
     * 
     * @param czjCommercialproperty 经营用房管理
     * @return 经营用房管理
     */
    @Override
    public List<CzjCommercialproperty> selectCzjCommercialpropertyList(CzjCommercialproperty czjCommercialproperty)
    {
        return czjCommercialpropertyMapper.selectCzjCommercialpropertyList(czjCommercialproperty);
    }

    /**
     * 新增经营用房管理
     * 
     * @param czjCommercialproperty 经营用房管理
     * @return 结果
     */
    @Override
    public int insertCzjCommercialproperty(CzjCommercialproperty czjCommercialproperty)
    {
        return czjCommercialpropertyMapper.insertCzjCommercialproperty(czjCommercialproperty);
    }

    /**
     * 修改经营用房管理
     * 
     * @param czjCommercialproperty 经营用房管理
     * @return 结果
     */
    @Override
    public int updateCzjCommercialproperty(CzjCommercialproperty czjCommercialproperty)
    {
        return czjCommercialpropertyMapper.updateCzjCommercialproperty(czjCommercialproperty);
    }

    /**
     * 批量删除经营用房管理
     * 
     * @param commercialids 需要删除的经营用房管理主键
     * @return 结果
     */
    @Override
    public int deleteCzjCommercialpropertyByCommercialids(Long[] commercialids)
    {
        return czjCommercialpropertyMapper.deleteCzjCommercialpropertyByCommercialids(commercialids);
    }

    /**
     * 删除经营用房管理信息
     * 
     * @param commercialid 经营用房管理主键
     * @return 结果
     */
    @Override
    public int deleteCzjCommercialpropertyByCommercialid(Long commercialid)
    {
        return czjCommercialpropertyMapper.deleteCzjCommercialpropertyByCommercialid(commercialid);
    }
}
